package com.me.bbs.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
@TableName("comment_like")
@ApiModel(value = "CommentLike对象", description = "")
@Data
public class CommentLike implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId
    private Long commentLikeId;

    @ApiModelProperty("点赞用户id")
    private Long user;

    @ApiModelProperty("评论作者id")
    private Long author;

    @ApiModelProperty("评论时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Long commentId;

    @Override
    public String toString() {
        return "CommentLike{" +
            "commentLikeId = " + commentLikeId +
            ", user = " + user +
            ", author = " + author +
            ", createTime = " + createTime +
        "}";
    }
}
